﻿Ext.define('SenchaApp.store.TreeNavStore', {
    extend: 'Ext.data.TreeStore',
    root: {
        children: [
            {
                text: "Cars",
                url: '/car',
                heirarchy : 'Cars',
                children: [
                    {
                        text: "BMW",
                        url: '/car/bmw',
                        heirarchy: 'Cars > BMW',
                        leaf: true
                    },
                    {
                        text: "Honda",
                        url: '/car/honda',
                        heirarchy: 'Cars > Honda',
                        leaf: true
                    },
                    {
                        text: "Nissan",
                        url: '/car/nissan',
                        heirarchy: 'Cars > Nissan',
                        leaf: true
                    },
                    {
                        text: "Mitsubishi",
                        url: '/car/mitsubishi',
                        heirarchy: 'Cars > Mitsubishi',
                        leaf: true
                    },
                    {
                        text: "KIA",
                        url: '/car/kia',
                        heirarchy: 'Cars > KIA',
                        leaf: true
                    }
                ]
            },
            {
                text: "Vans",
                url: '/vans',
                heirarchy: 'Vans',
                children: [
                    {
                        text: "Nissan",
                        url: '/vans/nissan',
                        heirarchy: 'Vans > Nissan',
                        leaf: true
                    },
                    {
                        text: "Mitsubishi",
                        url: '/vans/mitsubishi',
                        heirarchy: 'Vans > Mitsubishi',
                        leaf: true
                    },
                    {
                        text: "KIA",
                        url: '/vans/kia',
                        heirarchy: 'Vans > KIA',
                        leaf: true
                    }
                ]
            },
            {
                text: "Pick Ups",
                url: '/Pickups',
                heirarchy: 'Pick Ups',
                children: [
                    {
                        text: "Nissan",
                        url: '/Pickups/nissan',
                        heirarchy: 'Pick Ups > Nissan',
                        leaf: true
                    },
                    {
                        text: "Mitsubishi",
                        url: '/Pickups/mitsubishi',
                        heirarchy: 'Pick Ups > Mitsubishi',
                        leaf: true
                    },
                    {
                        text: "KIA",
                        url: '/Pickups/kia',
                        heirarchy: 'Pick Ups > KIA',
                        leaf: true
                    }
                ]
            },
        ]
    }
});